package tekdays



import grails.test.mixin.*
import org.junit.*

/**
 * See the API for {@link grails.test.mixin.domain.DomainClassUnitTestMixin} for usage instructions
 */
@TestFor(TekEvent)
class TekEventTests {

    void testToString() {
		def tekEvent = new TekEvent(name: 'Groovy One',
									city: 'San Francisco, CA',
									organizer: 'John Doe',
									venue: 'Moscone Center',
									startDate: new Date('6/2/2009'),
									endDate: new Date('6/5/2009'),
									description: 'This conference will cover all...')
		assertEquals 'Groovy One, San Francisco, CA', tekEvent.toString()
	//	assertThat tekEvent.toString(), is('Groovy One, San Francisco, CA')
		
    }
}
